package cn.edu.imau.zy.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.edu.imau.zy.common.core.entity.system.SpecialityBase;

import java.util.List;

/**
 * 专业Mapper接口
 * 
 * @author wyz
 * @date 2020-06-18
 */
public interface SpecialityBaseMapper extends BaseMapper<SpecialityBase>
{
    /**
     * 查询专业
     * 
     * @param specialityCode 专业ID
     * @return 专业
     */
    public SpecialityBase selectSpecialityBaseById(String specialityCode);

    /**
     * 查询专业列表
     * 
     * @param specialityBase 专业
     * @return 专业集合
     */
    public List<SpecialityBase> selectSpecialityBaseList(SpecialityBase specialityBase);

    /**
     * 新增专业
     * 
     * @param specialityBase 专业
     * @return 结果
     */
    public int insertSpecialityBase(SpecialityBase specialityBase);

    /**
     * 修改专业
     * 
     * @param specialityBase 专业
     * @return 结果
     */
    public int updateSpecialityBase(SpecialityBase specialityBase);

    /**
     * 删除专业
     * 
     * @param specialityCode 专业ID
     * @return 结果
     */
    public int deleteSpecialityBaseById(String specialityCode);

    /**
     * 批量删除专业
     * 
     * @param specialityCodes 需要删除的数据ID
     * @return 结果
     */
    public int deleteSpecialityBaseByIds(String[] specialityCodes);
}
